package com.chenyun.system.feign;

import com.chenyun.system.model.SysRole;
import com.chenyun.common.constants.AppConstans;
import com.chenyun.common.service.IBaseFeignService;
import com.chenyun.common.vo.ServiceResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * ISysRoleFeign：
 *
 * @author: Lonni
 * @date: 2023/3/31 0031 15:05
 */

@FeignClient(value = AppConstans.APPLICATION_SYSTEM_NAME,path = AppConstans.AppContextPath.SYSTEM_CONTEXT_PATH)
public interface ISysRoleFeign extends IBaseFeignService {


    /**
     * 添加角色
     * @param role
     * @return 返回角色id
     */
    @PostMapping(prefix+"addRole")
    ServiceResponse<Long> addRole(@RequestBody SysRole role);





}
